<form id="dict_info" method="post">
    <div align="center">
        <div>
            <label>字典类型:</label>
            <input class="easyui-validatebox" type="text" name="label_type"
                   data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">标签名称:</label>
            <input class="easyui-validatebox" type="text" name="label_name"
                   data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">标签值:　</label>
            <input class="easyui-validatebox" type="text" name="label_value"
                   data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">备注:　　</label>
            <input class="easyui-validatebox" type="text" name="remark"
                   data-options="required:true"/>
        </div>
        <div align="center" style="margin-top: 10px;">
            <button href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" type="submit">保存</button>
        </div>
    </div>
</form>
<script>
    var dictInfo = $('#dict_info');
    dictInfo.form({
        url: '${ctx}/sys/addDict',
        onSubmit: function () {
            return dictInfo.form('validate') ? true : false;
        },
        success: function (data) {
            parent.$.modalDialog.openner.datagrid('reload');
            parent.$.modalDialog.handler.dialog('close');
            return false;
        }
    });
    dictInfo.submit();
</script>